package com.zhonghui.procurement.mapper;

import com.zhonghui.procurement.domain.ProcurementList;
import com.zhonghui.procurement.domain.vo.PurchaseAnnouncementVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProcurementListMapper {

    List<ProcurementList> getProcurementList(@Param("listType") Integer listType, @Param("announcementType") Integer announcementType,@Param("title") String title);

    ProcurementList getProcurementListItem(int id);

    void updateReaderNumber(int id);

    /**
     * 新增采购-公告法规动态
     *
     * @param purchaseAnnouncementVo 采购-公告法规动态
     * @return 结果
     */
    public int insertProcurementList(PurchaseAnnouncementVo purchaseAnnouncementVo);

    /**
     * 查询采购-公告法规动态列表
     *
     * @param procurementList 采购-公告法规动态
     * @return 采购-公告法规动态集合
     */
    public List<ProcurementList> selectProcurementListList(ProcurementList procurementList);

    /**
     * 修改采购-公告法规动态
     *
     * @param procurementList 采购-公告法规动态
     * @return 结果
     */
    public int updateProcurementList(ProcurementList procurementList);

    /**
     * 删除采购-公告法规动态
     *
     * @param listId 采购-公告法规动态主键
     * @return 结果
     */
    public int deleteProcurementListByListIds(Long[] listId);
}
